import request from '@/utils/request'

// 查询医生回访列表
export function listDoctor(query) {
  return request({
    url: '/erp/doctor/list',
    method: 'get',
    params: query,
  })
}

// 查询医生回访详细
export function getDoctor(id) {
  return request({
    url: '/erp/doctor/' + id,
    method: 'get',
  })
}

// 新增医生回访
export function addDoctor(data) {
  return request({
    url: '/erp/doctor',
    method: 'post',
    data: data,
  })
}

// 修改医生回访
export function updateDoctor(data) {
  return request({
    url: '/erp/doctor',
    method: 'put',
    data: data,
  })
}

// 删除医生回访
export function delDoctor(id) {
  return request({
    url: '/erp/doctor/' + id,
    method: 'delete',
  })
}

// 导出医生回访
export function exportDoctor(query) {
  return request({
    url: '/erp/doctor/export',
    method: 'get',
    params: query,
  })
}
// 自定义tc回访列表
export function listDoctorAll(data) {
  return request({
    url: '/erp/doctor/extend/list',
    method: 'post',
    data,
  })
}
